<?php
namespace app\beautiful\model\mall;
use app\common\model\CommonModel;

class GoodsCategoryModel extends CommonModel{
    protected  $name = 'beautiful_goods_category';
    protected  $pk   = 'category_id';

    public function goods()
    {
        return $this->hasMany(GoodsModel::class,'category_id','category_id');
    }
}
